Update dependency svelte to v3.59.2 [SECURITY] #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.31.2→3.59.2GitHub Vulnerability Alerts
CVE-2022-25875
The package svelte before 3.49.0 is vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.
CVE-2024-45047
Summary
A potential XSS vulnerability exists in Svelte for versions prior to 4.2.19.
Details
Svelte improperly escapes HTML on server-side rendering. It converts strings according to the following rules:
"->"&->&<-><&->&The assumption is that attributes will always stay as such, but in some situation the final DOM tree rendered on browsers is different from what Svelte expects on server-side rendering. This may be leveraged to perform XSS attacks. More specifically, this can occur when injecting malicious content into an attribute within a
<noscript>tag.PoC
A vulnerable page (
+page.svelte):If a user accesses the following URL,
then,
alert(123)will be executed.Impact
XSS, when using an attribute within a noscript tag
GHSA-gw32-9rmw-qwww
Summary
A server-side rendered
<textarea>with two-way bound value does not have its value correctly escaped in the rendered HTML.Details
In SSR,
<textarea bind:value={...}>does not have its value escaped when it is rendered into the HTML as<textarea>...</textarea>.PoC
Put this in a server-side-rendered Svelte component:
Impact
<textarea bind:value>filled by user content via two-way bindingRelease Notes
sveltejs/svelte (svelte)
v3.59.2Compare Source
v3.59.1Compare Source
v3.59.0Compare Source
v3.58.0Compare Source
v3.57.0Compare Source
v3.56.0Compare Source
v3.55.1Compare Source
v3.55.0Compare Source
v3.54.0Compare Source
v3.53.1Compare Source
v3.53.0Compare Source
v3.52.0Compare Source
v3.51.0Compare Source
v3.50.1Compare Source
v3.50.0Compare Source
v3.49.0Compare Source
v3.48.0Compare Source
v3.47.0Compare Source
v3.46.6Compare Source
v3.46.5Compare Source
v3.46.4Compare Source
v3.46.3Compare Source
v3.46.2Compare Source
v3.46.1Compare Source
v3.46.0Compare Source
v3.45.0Compare Source
v3.44.3Compare Source
v3.44.2Compare Source
v3.44.1Compare Source
v3.44.0Compare Source
v3.43.2Compare Source
v3.43.1Compare Source
v3.43.0Compare Source
v3.42.6Compare Source
v3.42.5Compare Source
v3.42.4Compare Source
v3.42.3Compare Source
v3.42.2Compare Source
v3.42.1Compare Source
v3.42.0Compare Source
v3.41.0Compare Source
v3.40.3Compare Source
v3.40.2Compare Source
v3.40.1Compare Source
v3.40.0Compare Source
v3.39.0Compare Source
v3.38.3Compare Source
v3.38.2Compare Source
v3.38.1Compare Source
v3.38.0Compare Source
v3.37.0Compare Source
v3.36.0Compare Source
v3.35.0Compare Source
v3.34.0Compare Source
v3.33.0Compare Source
v3.32.3Compare Source
v3.32.2Compare Source
v3.32.1Compare Source
v3.32.0Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.